<include file="../Public/_header" />
<link rel="stylesheet" type="text/css" href="__THEME__/css/jquery.autocomplete.css" />
<link rel="stylesheet" href="__PUBLIC__/js/validationEngine/css/validationEngine.jquery.css" type="text/css"/>
<script src="__PUBLIC__/js/validationEngine/languages/jquery.validationEngine-zh_CN.js" type="text/javascript" charset="utf-8"></script>
<script src="__PUBLIC__/js/validationEngine/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.autocomplete.js"></script>
<script>
function DrawImage(ImgD){
   var preW = 300;
   var preH = 400 ;
   var image=new Image();
   image.src=ImgD.src;
   if(image.width>0 && image.height>0){
    flag=true;
    if(image.width/image.height>= preW/preH){
     if(image.width>preW){  
     ImgD.width=preW;
     ImgD.height=(image.height*preW)/image.width;
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     ImgD.alt=image.width+"×"+image.height;
     }
    else{
     if(image.height>preH){  
     ImgD.height=preH;
     ImgD.width=(image.width*preH)/image.height;     
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }
     ImgD.alt=image.width+"×"+image.height;
     }
    }
   /*else{
    ImgD.src="";
    ImgD.alt=""
    }*/
   } 
function FileChange(Value){
flag=false;
document.getElementById("uploadimage").width=10;
document.getElementById("uploadimage").height=10;
document.getElementById("uploadimage").alt="";
document.getElementById("uploadimage").src=Value;
}
</script>


<div class="content">
  <div class="main no_l">
    <div class="mainbox">
        <include file="../Public/_right" />
        <div class="mainbox_C">
        <div class=page_title> 
            <h2>
                <span class="f12px fn right"><a href="javascript:history.back( -1 )">&lt;&lt;返回上一页</a></span>
                <eq value="0" name="corp_info.corp_id">编辑<else/>添加</eq>企业
            </h2>
        </div>
        <div class="BlogBox">
          <form name="addenterprise" action="#" method="post" id="addenterprise">
		  <input type="hidden" name="corp_id" value="0" />
            <div class="LogList">
              <ul class="edit">
                <li style="padding:0;">
                  <div class="c1" style="line-height:30px;">企业名称(中文): &nbsp;</div>
                  <div class="c2">
                    <input id="corp_name_cn" name="corp_name_cn" type="text" class="text" style="width:60%;" onBlur="this.className='text'" onFocus="this.className='text2'" maxlength="50" value="" />
                  </div>
                </li>
                <li style="padding:0;">
                  <div class="c1" style="line-height:30px;">企业名称(英文): &nbsp;</div>
                  <div class="c2">
                    <input id="corp_name_en" name="corp_name_en" type="text" class="text" style="width:60%;" onBlur="this.className='text'" onFocus="this.className='text2'" maxlength="80" value="" />
                  </div>
                </li>
                <li style="padding:0;">
                  <div class="c1" style="line-height:30px;">简称(中文): &nbsp;</div>
                  <div class="c2">
                    <input id="corp_name_cn_shorttitle" name="corp_name_cn_shorttitle" type="text" class="text" style="width:60%;" onBlur="this.className='text'" onFocus="this.className='text2'" maxlength="20" value="" />
                  </div>
                </li>
                <li style="padding:0;">
                  <div class="c1" style="line-height:30px;">简称(英文): &nbsp;</div>
                  <div class="c2">
                    <input id="corp_name_en_shorttitle" name="corp_name_en_shorttitle" type="text" class="text" style="width:60%;" onBlur="this.className='text'" onFocus="this.className='text2'" maxlength="20" value="" />
                  </div>
                </li>
                <li style="padding:0;">
                  <div class="c1" style="line-height:30px;">索引字母(中文): &nbsp;</div>
                  <div class="c2">
                    <input id="corp_name_cn_index" name="corp_name_cn_index" type="text" class="text" style="width:60%;" onBlur="this.className='text'" onFocus="this.className='text2'" maxlength="1" value="" />
                  </div>
                </li>
                <li style="padding:0;">
                  <div class="c1" style="line-height:30px;">索引字母(英文): &nbsp;</div>
                  <div class="c2">
                    <input id="corp_name_en_index" name="corp_name_en_index" type="text" class="text" style="width:60%;" onBlur="this.className='text'" onFocus="this.className='text2'" maxlength="1" value="" />
                  </div>
                </li>
                <li style="padding:0;">
                  <div class="c1">简介: &nbsp;</div>
                  <div class="c2"><textarea id="corp_desc" name="corp_desc" style="height:60px;width:60%" ></textarea></div>
                </li>
                <li style="padding:0;">
                  <div class="c1">企业Logo: &nbsp;</div>
                  <div class="c2">
				  <input id="corp_logo" name="corp_logo" type="hidden" />
				  <div class="logoPic">
				  <span id="corp_logo"><img src="{:W('GetCorpLogo',array('size'=>'80x80'))}" /></span></div>
				  <br /><input type="file" value= "" />
				  <a href="#">删除</a>
				  </div>
                </li>
                <li style="padding:0;<nosession name='userInfo'> display:none;</nosession>">
                  <div class="c1" style="line-height:30px;">我是这家企业员工: &nbsp;</div>
                  <div class="c2">
                    <input id="corp_is_owner" name="corp_is_owner" type="checkbox"  />
                  </div>
                </li>
                <li style="padding:0;">
                  <div class="c1">&nbsp;</div>
                  <div class="c2" style="height:30px;"><span style="float:left;"><input type="submit" class="btn_b" value="提交" /></span>
				  <nosession name="userInfo"><span class="user_show_n"  style="float:left;">&nbsp;&nbsp;&nbsp;你还未登录，只有登录后你录入企业的信息才能和你联系起来，<a href="javascript:void(0)" onclick="ui.quicklogin()" >快速登录或注册</a></span></nosession>
				  </div>
                </li>
              </ul>
            </div>
          </form>
        </div>
        <div class="c"></div>
      </div>
    </div>
    <div class="c"></div>
  </div>
</div>
<include file="__THEME__/footer" />